package com.myideas.webapp.filter;

import javax.faces.event.PhaseEvent;
import javax.faces.event.PhaseId;
import javax.faces.event.PhaseListener;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
 
public class JSFPhaseTrace implements PhaseListener {

    protected final Log log = LogFactory.getLog(getClass());
	
	public void afterPhase(PhaseEvent event) {
		log.debug("JSF event. After "+event.getPhaseId().toString());
	}

	public void beforePhase(PhaseEvent event) {
		log.debug("JSF event.  Before "+event.getPhaseId().toString());
	}

	public PhaseId getPhaseId() {
		return PhaseId.ANY_PHASE;
	}

}
